package com.melodyframe.stage.demo.web.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.melodyframe.stage.core.conductor.CommonConductor;
import com.melodyframe.stage.core.conductor.Conductor;
import com.melodyframe.stage.core.renderer.ViewRenderer;
import com.melodyframe.stage.supports.freemarker.FreemarkerViewRenderer;

@Configuration
public class DemoConfig {

	@Bean(name = "conductor")
	public Conductor<?> getConductor() {
		return new CommonConductor();
	}

	@Bean(name = "viewRenderer")
	public ViewRenderer getRenderer() {
		return new FreemarkerViewRenderer();
	}
}
